from google.appengine.ext import db

class Tags(db.Model):
  name = db.StringProperty()
  refCount = db.IntegerProperty(default = 1)

class Record(db.Model):
  date = db.DateTimeProperty()
  dfmt = db.StringProperty()
  value = db.FloatProperty()
  unit = db.StringProperty()
  tags = db.StringListProperty()

class History(db.Model):
  tags = db.StringListProperty()
  qcount = db.IntegerProperty(default = 1)
  found = db.BooleanProperty(default = True)
